{include file="templates/default/share/header.tpl"}

<article id="examples">
	<div class="wrapper">
		<div class="content">
			{if $status}
				<h1 class="title_img {$category_is_class_name}-games">{$category_is_name}</h1>
				<div class="ads_728x90 mb20">{include file="templates/ads/ads_responsive.tpl"}</div>
				
				<ol id="breadcrumb">
			        <li class="home"><a href="/" title="{$text_home}">{$text_home}</a></li>
			        <li>{$category_is_name}</li>
			    </ol>

			    <p class="mb40"></p>
				{if !empty($panigation)}
					<div class="pagination">
						<ol class="paginate pag4">{$panigation}</ol>
					</div>
				{/if}
				{if empty($listgames)}
					<h2>Games is updating...</h2>
				{else}
					<ul>
					{foreach $listgames as $key=>$value}
						<li>
							<a href="{$control_play}{$value['g_url']}.html" title="{$value['g_name']} {$title_text_game}">
								<img src="{$value['images']}" width="{$width}" height="{$height}" alt="{$value['g_name']} {$title_text_game}" />
								<h4>{$value['g_name']}</h4>
							</a>
						</li>
					{/foreach}
					</ul>
				{/if}
				{if !empty($panigation)}
					<div class="pagination">
						<ol class="paginate pag4">{$panigation}</ol>
					</div>
				{/if}
			{else}
				<h1 class="title_img page-not-found">404 - Page Not Found</h1>
				<div class="ads_728x90 mb20">{include file="templates/ads/ads_responsive.tpl"}</div>
				<h2>{$webpage_not_found}</h2>
			{/if}
		</div>
		<div class="sidebar">
			{include file="templates/default/share/sidebar.tpl"}
		</div>
	</div>
</article>

{include file="templates/default/share/footer.tpl"}